//
//  KLBookBaseDAO.h
//  KLBookStore
//
//  Created by apple on 2017/10/15.
//  Copyright © 2017年 NetEaseExam. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "FMDB.h"
#import "KLBaseModel.h"

@interface KLBookBaseDAO : NSObject

+ (long long)insertModel:(KLBaseModel *)model withDataBase: (FMDatabase *)db;

+ (KLBaseModel *)queryModelByDoubanId:(long long)doubanId withDataBase:(FMDatabase *)db;

+ (KLBaseModel *)queryModelById:(long long)localId withDataBase:(FMDatabase *)db;

+ (BOOL)deleteModelWithId:(long long)localId withDataBase: (FMDatabase *)db;

+ (BOOL)deleteModelWithDoubanId:(long long)doubanId withDataBase: (FMDatabase *)db;

@end
